package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean2;
import com.itheima.service.BookingOrderService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zero
 * @date 2020/6/5
 */

@RestController
@RequestMapping("/bookingOrder")
public class BookingOrderController {

    @Reference
    public BookingOrderService bookingOrderService;

    @RequestMapping("/findPage")
    public PageResult pageQuery(@RequestBody QueryPageBean2 queryPageBean2){
        return bookingOrderService.pageQuery(queryPageBean2);
    }
}
